<div class="modal-header" id="scope">
	<h3 class="modal-title" ng-if="param.type == 'update'">屏蔽站点</h3>
</div>
<div class="modal-body">
	<form name="myForm" class="form-horizontal form-validation">
		<div class="panel panel-default">
			<div class="panel-body">
				<table class="table table-striped b-t b-light">
					<thead>
						<tr>
							<th style="width: 10px;"></th>
							<th>类型</th>
							<th>站点城市</th>
							<th>站点名称</th>
							<th>价格</th>
							<th>是否屏蔽</th>
						</tr>
					</thead>
					<tbody>
						<tr ng-repeat="each in list">
							<td></td>
							<td>
								<span class="start" ng-if="each.station.type==1">起</span>
								<span class="up" ng-if="each.station.type==2&&!each.station.destination">上</span>
								<span class="down" ng-if="each.station.type==2&&each.station.destination">下</span>
								<span class="termina" ng-if="each.station.type==3">终</span>
							</td>
							<td>{{each.station.station.city}}</td>
							<td>{{each.station.station.address}}</td>
							<td>{{each.price}}</td>
							<td>
								<label class="i-switch bg-info m-t-xs m-r" ng-if="each.station.type==2">
									<input type="checkbox" ng-checked="each.disabled" ng-click="update(each)">
									<i></i>
								</label>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
			<footer class="panel-footer text-right bg-light lter">
				<button class="btn btn-default" type="button" ng-click="cancel()">取消</button>
				<button type="submit" class="btn btn-success" ng-click="ok()">提交</button>
			</footer>
		</div>
	</form>
</div>
<style>
	.start {
		width: 2.6rem;
		height: 2.6rem;
		line-height: 2.6rem;
		background-color: #49AAE6;
		color: #fff;
		border-radius: 50%;
		display: inline-block;
		text-align: center;
		font-size: 1.3rem;
	}

	.termina {
		width: 2.6rem;
		height: 2.6rem;
		line-height: 2.6rem;
		background-color: #70D7C6;
		color: #fff;
		border-radius: 50%;
		display: inline-block;
		text-align: center;
		font-size: 1.3rem;
	}

	.up {
		width: 2.6rem;
		height: 2.6rem;
		line-height: 2.6rem;
		background-color: #9AD0F1;
		color: #fff;
		border-radius: 50%;
		display: inline-block;
		text-align: center;
		font-size: 1.3rem;
	}

	.down {
		width: 2.6rem;
		height: 2.6rem;
		line-height: 2.6rem;
		background-color: #BDECE3;
		color: #fff;
		border-radius: 50%;
		display: inline-block;
		text-align: center;
		font-size: 1.3rem;
	}
</style>